﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class Extensions {

    public static void SetUIPosition(this RectTransform uiTrans, Vector3 worldPos)
    {
        uiTrans.transform.position = worldPos;
        var ap = uiTrans.anchoredPosition3D;
        ap.z = 10;
        uiTrans.anchoredPosition3D = ap;
    }
}

